package io.sage.modules.readsenseapi.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class BFlowCustomersExample {
    /**
     * b_flow_customers
     */
    protected String orderByClause;

    /**
     * b_flow_customers
     */
    protected boolean distinct;

    /**
     * b_flow_customers
     */
    protected List<Criteria> oredCriteria;

    public BFlowCustomersExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * b_flow_customers 2019-08-08
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBirthdayIsNull() {
            addCriterion("birthday is null");
            return (Criteria) this;
        }

        public Criteria andBirthdayIsNotNull() {
            addCriterion("birthday is not null");
            return (Criteria) this;
        }

        public Criteria andBirthdayEqualTo(Date value) {
            addCriterionForJDBCDate("birthday =", value, "birthday");
            return (Criteria) this;
        }

        public Criteria andBirthdayNotEqualTo(Date value) {
            addCriterionForJDBCDate("birthday <>", value, "birthday");
            return (Criteria) this;
        }

        public Criteria andBirthdayGreaterThan(Date value) {
            addCriterionForJDBCDate("birthday >", value, "birthday");
            return (Criteria) this;
        }

        public Criteria andBirthdayGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("birthday >=", value, "birthday");
            return (Criteria) this;
        }

        public Criteria andBirthdayLessThan(Date value) {
            addCriterionForJDBCDate("birthday <", value, "birthday");
            return (Criteria) this;
        }

        public Criteria andBirthdayLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("birthday <=", value, "birthday");
            return (Criteria) this;
        }

        public Criteria andBirthdayIn(List<Date> values) {
            addCriterionForJDBCDate("birthday in", values, "birthday");
            return (Criteria) this;
        }

        public Criteria andBirthdayNotIn(List<Date> values) {
            addCriterionForJDBCDate("birthday not in", values, "birthday");
            return (Criteria) this;
        }

        public Criteria andBirthdayBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("birthday between", value1, value2, "birthday");
            return (Criteria) this;
        }

        public Criteria andBirthdayNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("birthday not between", value1, value2, "birthday");
            return (Criteria) this;
        }

        public Criteria andCaptureAtIsNull() {
            addCriterion("capture_at is null");
            return (Criteria) this;
        }

        public Criteria andCaptureAtIsNotNull() {
            addCriterion("capture_at is not null");
            return (Criteria) this;
        }

        public Criteria andCaptureAtEqualTo(Date value) {
            addCriterionForJDBCDate("capture_at =", value, "captureAt");
            return (Criteria) this;
        }

        public Criteria andCaptureAtNotEqualTo(Date value) {
            addCriterionForJDBCDate("capture_at <>", value, "captureAt");
            return (Criteria) this;
        }

        public Criteria andCaptureAtGreaterThan(Date value) {
            addCriterionForJDBCDate("capture_at >", value, "captureAt");
            return (Criteria) this;
        }

        public Criteria andCaptureAtGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("capture_at >=", value, "captureAt");
            return (Criteria) this;
        }

        public Criteria andCaptureAtLessThan(Date value) {
            addCriterionForJDBCDate("capture_at <", value, "captureAt");
            return (Criteria) this;
        }

        public Criteria andCaptureAtLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("capture_at <=", value, "captureAt");
            return (Criteria) this;
        }

        public Criteria andCaptureAtIn(List<Date> values) {
            addCriterionForJDBCDate("capture_at in", values, "captureAt");
            return (Criteria) this;
        }

        public Criteria andCaptureAtNotIn(List<Date> values) {
            addCriterionForJDBCDate("capture_at not in", values, "captureAt");
            return (Criteria) this;
        }

        public Criteria andCaptureAtBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("capture_at between", value1, value2, "captureAt");
            return (Criteria) this;
        }

        public Criteria andCaptureAtNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("capture_at not between", value1, value2, "captureAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtIsNull() {
            addCriterion("created_at is null");
            return (Criteria) this;
        }

        public Criteria andCreatedAtIsNotNull() {
            addCriterion("created_at is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedAtEqualTo(Date value) {
            addCriterionForJDBCDate("created_at =", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtNotEqualTo(Date value) {
            addCriterionForJDBCDate("created_at <>", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtGreaterThan(Date value) {
            addCriterionForJDBCDate("created_at >", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("created_at >=", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtLessThan(Date value) {
            addCriterionForJDBCDate("created_at <", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("created_at <=", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtIn(List<Date> values) {
            addCriterionForJDBCDate("created_at in", values, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtNotIn(List<Date> values) {
            addCriterionForJDBCDate("created_at not in", values, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("created_at between", value1, value2, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("created_at not between", value1, value2, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdIsNull() {
            addCriterion("customer_group_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdIsNotNull() {
            addCriterion("customer_group_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdEqualTo(String value) {
            addCriterion("customer_group_id =", value, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdNotEqualTo(String value) {
            addCriterion("customer_group_id <>", value, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdGreaterThan(String value) {
            addCriterion("customer_group_id >", value, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdGreaterThanOrEqualTo(String value) {
            addCriterion("customer_group_id >=", value, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdLessThan(String value) {
            addCriterion("customer_group_id <", value, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdLessThanOrEqualTo(String value) {
            addCriterion("customer_group_id <=", value, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdLike(String value) {
            addCriterion("customer_group_id like", value, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdNotLike(String value) {
            addCriterion("customer_group_id not like", value, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdIn(List<String> values) {
            addCriterion("customer_group_id in", values, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdNotIn(List<String> values) {
            addCriterion("customer_group_id not in", values, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdBetween(String value1, String value2) {
            addCriterion("customer_group_id between", value1, value2, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andCustomerGroupIdNotBetween(String value1, String value2) {
            addCriterion("customer_group_id not between", value1, value2, "customerGroupId");
            return (Criteria) this;
        }

        public Criteria andEventsCountIsNull() {
            addCriterion("events_count is null");
            return (Criteria) this;
        }

        public Criteria andEventsCountIsNotNull() {
            addCriterion("events_count is not null");
            return (Criteria) this;
        }

        public Criteria andEventsCountEqualTo(Integer value) {
            addCriterion("events_count =", value, "eventsCount");
            return (Criteria) this;
        }

        public Criteria andEventsCountNotEqualTo(Integer value) {
            addCriterion("events_count <>", value, "eventsCount");
            return (Criteria) this;
        }

        public Criteria andEventsCountGreaterThan(Integer value) {
            addCriterion("events_count >", value, "eventsCount");
            return (Criteria) this;
        }

        public Criteria andEventsCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("events_count >=", value, "eventsCount");
            return (Criteria) this;
        }

        public Criteria andEventsCountLessThan(Integer value) {
            addCriterion("events_count <", value, "eventsCount");
            return (Criteria) this;
        }

        public Criteria andEventsCountLessThanOrEqualTo(Integer value) {
            addCriterion("events_count <=", value, "eventsCount");
            return (Criteria) this;
        }

        public Criteria andEventsCountIn(List<Integer> values) {
            addCriterion("events_count in", values, "eventsCount");
            return (Criteria) this;
        }

        public Criteria andEventsCountNotIn(List<Integer> values) {
            addCriterion("events_count not in", values, "eventsCount");
            return (Criteria) this;
        }

        public Criteria andEventsCountBetween(Integer value1, Integer value2) {
            addCriterion("events_count between", value1, value2, "eventsCount");
            return (Criteria) this;
        }

        public Criteria andEventsCountNotBetween(Integer value1, Integer value2) {
            addCriterion("events_count not between", value1, value2, "eventsCount");
            return (Criteria) this;
        }

        public Criteria andGenderIsNull() {
            addCriterion("gender is null");
            return (Criteria) this;
        }

        public Criteria andGenderIsNotNull() {
            addCriterion("gender is not null");
            return (Criteria) this;
        }

        public Criteria andGenderEqualTo(Integer value) {
            addCriterion("gender =", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotEqualTo(Integer value) {
            addCriterion("gender <>", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderGreaterThan(Integer value) {
            addCriterion("gender >", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderGreaterThanOrEqualTo(Integer value) {
            addCriterion("gender >=", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderLessThan(Integer value) {
            addCriterion("gender <", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderLessThanOrEqualTo(Integer value) {
            addCriterion("gender <=", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderIn(List<Integer> values) {
            addCriterion("gender in", values, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotIn(List<Integer> values) {
            addCriterion("gender not in", values, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderBetween(Integer value1, Integer value2) {
            addCriterion("gender between", value1, value2, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotBetween(Integer value1, Integer value2) {
            addCriterion("gender not between", value1, value2, "gender");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlIsNull() {
            addCriterion("original_face_url is null");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlIsNotNull() {
            addCriterion("original_face_url is not null");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlEqualTo(String value) {
            addCriterion("original_face_url =", value, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlNotEqualTo(String value) {
            addCriterion("original_face_url <>", value, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlGreaterThan(String value) {
            addCriterion("original_face_url >", value, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlGreaterThanOrEqualTo(String value) {
            addCriterion("original_face_url >=", value, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlLessThan(String value) {
            addCriterion("original_face_url <", value, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlLessThanOrEqualTo(String value) {
            addCriterion("original_face_url <=", value, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlLike(String value) {
            addCriterion("original_face_url like", value, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlNotLike(String value) {
            addCriterion("original_face_url not like", value, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlIn(List<String> values) {
            addCriterion("original_face_url in", values, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlNotIn(List<String> values) {
            addCriterion("original_face_url not in", values, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlBetween(String value1, String value2) {
            addCriterion("original_face_url between", value1, value2, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andOriginalFaceUrlNotBetween(String value1, String value2) {
            addCriterion("original_face_url not between", value1, value2, "originalFaceUrl");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNull() {
            addCriterion("phone is null");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNotNull() {
            addCriterion("phone is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneEqualTo(String value) {
            addCriterion("phone =", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotEqualTo(String value) {
            addCriterion("phone <>", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThan(String value) {
            addCriterion("phone >", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("phone >=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThan(String value) {
            addCriterion("phone <", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThanOrEqualTo(String value) {
            addCriterion("phone <=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLike(String value) {
            addCriterion("phone like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotLike(String value) {
            addCriterion("phone not like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneIn(List<String> values) {
            addCriterion("phone in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotIn(List<String> values) {
            addCriterion("phone not in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneBetween(String value1, String value2) {
            addCriterion("phone between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotBetween(String value1, String value2) {
            addCriterion("phone not between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtIsNull() {
            addCriterion("last_capture_at is null");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtIsNotNull() {
            addCriterion("last_capture_at is not null");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtEqualTo(Date value) {
            addCriterionForJDBCDate("last_capture_at =", value, "lastCaptureAt");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtNotEqualTo(Date value) {
            addCriterionForJDBCDate("last_capture_at <>", value, "lastCaptureAt");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtGreaterThan(Date value) {
            addCriterionForJDBCDate("last_capture_at >", value, "lastCaptureAt");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("last_capture_at >=", value, "lastCaptureAt");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtLessThan(Date value) {
            addCriterionForJDBCDate("last_capture_at <", value, "lastCaptureAt");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("last_capture_at <=", value, "lastCaptureAt");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtIn(List<Date> values) {
            addCriterionForJDBCDate("last_capture_at in", values, "lastCaptureAt");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtNotIn(List<Date> values) {
            addCriterionForJDBCDate("last_capture_at not in", values, "lastCaptureAt");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("last_capture_at between", value1, value2, "lastCaptureAt");
            return (Criteria) this;
        }

        public Criteria andLastCaptureAtNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("last_capture_at not between", value1, value2, "lastCaptureAt");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameIsNull() {
            addCriterion("last_event_device_name is null");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameIsNotNull() {
            addCriterion("last_event_device_name is not null");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameEqualTo(String value) {
            addCriterion("last_event_device_name =", value, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameNotEqualTo(String value) {
            addCriterion("last_event_device_name <>", value, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameGreaterThan(String value) {
            addCriterion("last_event_device_name >", value, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameGreaterThanOrEqualTo(String value) {
            addCriterion("last_event_device_name >=", value, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameLessThan(String value) {
            addCriterion("last_event_device_name <", value, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameLessThanOrEqualTo(String value) {
            addCriterion("last_event_device_name <=", value, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameLike(String value) {
            addCriterion("last_event_device_name like", value, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameNotLike(String value) {
            addCriterion("last_event_device_name not like", value, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameIn(List<String> values) {
            addCriterion("last_event_device_name in", values, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameNotIn(List<String> values) {
            addCriterion("last_event_device_name not in", values, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameBetween(String value1, String value2) {
            addCriterion("last_event_device_name between", value1, value2, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventDeviceNameNotBetween(String value1, String value2) {
            addCriterion("last_event_device_name not between", value1, value2, "lastEventDeviceName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameIsNull() {
            addCriterion("last_event_shop_name is null");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameIsNotNull() {
            addCriterion("last_event_shop_name is not null");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameEqualTo(String value) {
            addCriterion("last_event_shop_name =", value, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameNotEqualTo(String value) {
            addCriterion("last_event_shop_name <>", value, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameGreaterThan(String value) {
            addCriterion("last_event_shop_name >", value, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameGreaterThanOrEqualTo(String value) {
            addCriterion("last_event_shop_name >=", value, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameLessThan(String value) {
            addCriterion("last_event_shop_name <", value, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameLessThanOrEqualTo(String value) {
            addCriterion("last_event_shop_name <=", value, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameLike(String value) {
            addCriterion("last_event_shop_name like", value, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameNotLike(String value) {
            addCriterion("last_event_shop_name not like", value, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameIn(List<String> values) {
            addCriterion("last_event_shop_name in", values, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameNotIn(List<String> values) {
            addCriterion("last_event_shop_name not in", values, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameBetween(String value1, String value2) {
            addCriterion("last_event_shop_name between", value1, value2, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andLastEventShopNameNotBetween(String value1, String value2) {
            addCriterion("last_event_shop_name not between", value1, value2, "lastEventShopName");
            return (Criteria) this;
        }

        public Criteria andNoteIsNull() {
            addCriterion("note is null");
            return (Criteria) this;
        }

        public Criteria andNoteIsNotNull() {
            addCriterion("note is not null");
            return (Criteria) this;
        }

        public Criteria andNoteEqualTo(String value) {
            addCriterion("note =", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotEqualTo(String value) {
            addCriterion("note <>", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteGreaterThan(String value) {
            addCriterion("note >", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteGreaterThanOrEqualTo(String value) {
            addCriterion("note >=", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteLessThan(String value) {
            addCriterion("note <", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteLessThanOrEqualTo(String value) {
            addCriterion("note <=", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteLike(String value) {
            addCriterion("note like", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotLike(String value) {
            addCriterion("note not like", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteIn(List<String> values) {
            addCriterion("note in", values, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotIn(List<String> values) {
            addCriterion("note not in", values, "note");
            return (Criteria) this;
        }

        public Criteria andNoteBetween(String value1, String value2) {
            addCriterion("note between", value1, value2, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotBetween(String value1, String value2) {
            addCriterion("note not between", value1, value2, "note");
            return (Criteria) this;
        }

        public Criteria andPersonIdIsNull() {
            addCriterion("person_id is null");
            return (Criteria) this;
        }

        public Criteria andPersonIdIsNotNull() {
            addCriterion("person_id is not null");
            return (Criteria) this;
        }

        public Criteria andPersonIdEqualTo(String value) {
            addCriterion("person_id =", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdNotEqualTo(String value) {
            addCriterion("person_id <>", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdGreaterThan(String value) {
            addCriterion("person_id >", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdGreaterThanOrEqualTo(String value) {
            addCriterion("person_id >=", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdLessThan(String value) {
            addCriterion("person_id <", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdLessThanOrEqualTo(String value) {
            addCriterion("person_id <=", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdLike(String value) {
            addCriterion("person_id like", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdNotLike(String value) {
            addCriterion("person_id not like", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdIn(List<String> values) {
            addCriterion("person_id in", values, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdNotIn(List<String> values) {
            addCriterion("person_id not in", values, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdBetween(String value1, String value2) {
            addCriterion("person_id between", value1, value2, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdNotBetween(String value1, String value2) {
            addCriterion("person_id not between", value1, value2, "personId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtIsNull() {
            addCriterion("updated_at is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtIsNotNull() {
            addCriterion("updated_at is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtEqualTo(Date value) {
            addCriterionForJDBCDate("updated_at =", value, "updatedAt");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtNotEqualTo(Date value) {
            addCriterionForJDBCDate("updated_at <>", value, "updatedAt");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtGreaterThan(Date value) {
            addCriterionForJDBCDate("updated_at >", value, "updatedAt");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("updated_at >=", value, "updatedAt");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtLessThan(Date value) {
            addCriterionForJDBCDate("updated_at <", value, "updatedAt");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("updated_at <=", value, "updatedAt");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtIn(List<Date> values) {
            addCriterionForJDBCDate("updated_at in", values, "updatedAt");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtNotIn(List<Date> values) {
            addCriterionForJDBCDate("updated_at not in", values, "updatedAt");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("updated_at between", value1, value2, "updatedAt");
            return (Criteria) this;
        }

        public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("updated_at not between", value1, value2, "updatedAt");
            return (Criteria) this;
        }
    }

    /**
     * b_flow_customers
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * b_flow_customers 2019-08-08
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}